﻿using System.Collections.Generic;

namespace Common.Model
{
    /// <summary>
    /// layui分页
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class LayuiJson<T>
    {
        /// <summary>
        /// 总记录数
        /// </summary>
        public int count { get; set; }

        /// <summary>
        /// 状态代码
        /// </summary>
        public int code { get; set; }

        /// <summary>
        /// 错误信息
        /// </summary>
        public string msg { get; set; }

        /// <summary>
        /// 数据集
        /// </summary>
        public List<T> data { get; set; }

        public LayuiJson()
        {
            this.code = 0;
        }
    }
}
